             package com.java.diagnostics.visualizer.recommender.sovereign;
             
             import com.java.diagnostics.visualizer.data.AggregateData;
             import com.java.diagnostics.visualizer.data.TupleData;
             import com.java.diagnostics.visualizer.recommender.Recommendation;
             import com.java.diagnostics.visualizer.recommender.RecommendationBase;
             import com.java.diagnostics.visualizer.recommender.util.RecommendationLabels;
             import java.text.MessageFormat;
             
             public class LookForPinnedClasses
               extends RecommendationBase
               implements Recommendation
             {
               private static final String XK = "-Xk";
               
               public void recommend(AggregateData data)
               {
                 TupleData actions = data.getTupleData("VGCLabels.pinned.classes");
                 if ((actions != null) && 
                   (!actions.isEmpty()))
                 {
                   int xk = (int)Math.round(actions.getRawMaxY() * 1.1D);
                   String message = RecommendationLabels.XK_COMMENT;
                   String comment = MessageFormat.format(message, 
                     new Object[] { Integer.valueOf(xk) });
                   
                   addComment(data, comment);
                   addToCommandLine(data, "-Xk", "-Xk" + xk);
                 }
               }
             }


